package delta;

public class Player {

	static {
		witchcraft = 100;
		isEndOfWorld = false;
		isChampOfWorld = false;
	}
	public static void restart(){
		witchcraft = 100;
		isEndOfWorld = false;
		isChampOfWorld = false;
	}
	private static Integer witchcraft;
	private static Boolean isEndOfWorld;
	private static Boolean isChampOfWorld;

	private Player() {
	}

	public static String toStringStatic() {
		StringBuilder str = new StringBuilder();
		str.append("Player:\n");
		str.append("Witchcraft= " + witchcraft + "\n");
		return str.toString();
	}

	public static void writeValues() {
		System.out.println("player:");
		System.out.println("witchcraft:" + witchcraft);
	}

	public static void increaseWitchcraft(Integer count) {
		witchcraft += count;
	}

	public static void decreaseWitchcraft(Integer count) {
		witchcraft -= count;
	}

	public static Integer getWitchcraft() {
		return witchcraft;
	}

	public static void setWitchcraft(Integer witchcraft) {
		Player.witchcraft = witchcraft;
	}

	public static Boolean getIsEndOfWorld() {
		return isEndOfWorld;
	}

	public static void setIsEndOfWorld(Boolean isEndOfWorld) {
		Player.isEndOfWorld = isEndOfWorld;
	}
	public static Boolean getIsChampOfWorld() {
		return isChampOfWorld;
	}

	public static void setIsChampOfWorld(Boolean isChampOfWorld) {
		Player.isChampOfWorld = isChampOfWorld;
	}

}